<ion-view title="邀请收益列表"> 
	<ion-content style="background-color:#f5f5f5;padding-top:10px;">
		<div style="background-color: white;">
			<div class="row">
			  <div class="col col-100" style="text-align: center;border-right: 1px solid #f8f8f8;">
					<font style="color: #484747">{{inviteEarnings}}</font><br/><font style="font-size: 13px;color: #727171;">总收益</font>
			  </div>
			</div>
			
			<div class="row">
			  <div class="col" style="text-align: center;border-right: 1px solid #f8f8f8;">
					<font style="color: #484747">{{countInvited}}</font><br/><font style="font-size: 13px;color: #727171;">一级总受邀请人</font>
			  </div>
			  <div class="col" style="text-align: center;border-right: 1px solid #f8f8f8;">
					<font style="color: #484747">{{oneInviteEarnings}}</font><br/><font style="font-size: 13px;color: #727171;">一级总收益</font>
			  </div>
			  </div>
			<div class="row">
			  <div class="col" style="text-align: center;border-right: 1px solid #f8f8f8;">
					<font style="color: #484747">{{twoCountInvited}}</font><br/><font style="font-size: 13px;color: #727171;">二级总受邀请人</font>
			  </div>
			  <div class="col" style="text-align: center;border-right: 1px solid #f8f8f8;">
					<font style="color: #484747">{{twoInviteEarnings}}</font><br/><font style="font-size: 13px;color: #727171;">二级总收益</font>
			  </div>
			  </div>

			<div style="height: 10px;background-color: #F8F8F8;"></div>
			<div class="row" style="margin: 0;padding: 0;">
			  <div class="col col-15" style="text-align: center;border-right: 1px solid #f8f8f8;border-bottom: 1px solid #f8f8f8;font-weight: bold;font-size: 13px;color:#484747;">一级受邀人</div>
			  <div class="col col-35" style="text-align: center;border-right: 1px solid #f8f8f8;border-bottom: 1px solid #f8f8f8;font-weight: bold;font-size: 13px;color:#484747;">出借/收益</div>
			  <div class="col col-35" style="text-align: center;border-right: 1px solid #f8f8f8;border-bottom: 1px solid #f8f8f8;font-weight: bold;font-size: 13px;color:#484747;">付息/收益</div>
			  <div class="col col-15" style="text-align: center;border-bottom: 1px solid #f8f8f8;font-weight: bold;font-size: 13px;color:#484747;">日期</div>
			</div>
			<ion-list>			
				<div class="row" ng-repeat ="user in list" style="color: #727171;margin: 0;padding: 0;">
				  <div class="col col-15" style="text-align: center;border-right: 1px solid #f8f8f8;border-bottom: 1px solid #f8f8f8;"><a href="#/tab/my/myInviteList/{{user.userId}}" style="text-decoration:none;color:#0000FF;">{{user.name}}</a></div>
				  <div class="col col-35" style="text-align: center;border-right: 1px solid #f8f8f8;border-bottom: 1px solid #f8f8f8;">{{user.loan | number:0}}/{{user.loanEarn}}</div>
				  <div class="col col-35" style="text-align: center;border-right: 1px solid #f8f8f8;border-bottom: 1px solid #f8f8f8;">{{user.interest}}/{{user.interestEarn}}</div>
				  <div class="col col-15" style="text-align: center;border-bottom: 1px solid #f8f8f8;">{{user.createTime | date:'yyyy-MM-dd'}}</div>
				</div>	
				
				<ion-infinite-scroll ng-if="noMore" on-infinite="loadList()" distance="20%"></ion-infinite-scroll> 
			</ion-list>
		</div>
	</ion-content> 
</ion-view>